<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <!-- v-on: -->
    <div id="app">
        <button v-on:click="show()">送你的惊喜1</button>
        <!-- 简写方式 @click -->
        <button @click="show2()">送你的惊喜2</button>

        <h1 :hidden="keyword">{{msg}}</h1>
    </div>
    <script src="vue.min.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                keyword:true,
                msg:"Haifu Liu is a dog"
            },
            methods: {
                show() {
                    this.keyword=false
                },
                show2() {
                   this.msg="Haifu Liu is a Java big old "
                }
            }
        })
    </script>
</body>

</html>